//package com.wzy.service.base.config;
//
//import com.wzy.service.base.interceptor.LoginInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
///**
// * 2 * @Author: wuzhengyu
// * 3 * @Date: 2021/3/15 20:41
// * 4
// */
//@Configuration
//public class WebAppConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new LoginInterceptor())
//                .addPathPatterns("/**") // 设置要拦截的路径
//                .excludePathPatterns("/","/login"); //除了这些路径
//    }
//
//}
